#include <iostream>

using namespace std;

int main()
{
	int t[3][3] = {0,1,2,
				   3,4,5,
				   6,7,8}, * p[3], k;
	for (k = 0; k < 3; k++) p[k] = &t[k][0];
	
	cout << *(*(p + 1) + 2) << endl;
	return 0;
}